<script>
export default {
  created () {
    const logs = wx.getStorageSync('logs') || [];
    logs.unshift(Date.now());
    wx.setStorageSync('logs', logs);
    const userInfo = {
      openId: 'oQmbb4sNZdxaUQZ0sfYgvtOP2S7c',
      nickName: '何玉硕',
      gender: 1,
      language: 'zh_CN',
      city: 'Changping',
      province: 'Beijing',
      country: 'China',
      avatarUrl: 'https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIbWFEIJj8IpGeHM7dGic1aTFZALjWcMm9ltWfFiaQfVRYticWBfgGfzXWMt2EkJWiaicPtftHAlWxUibxQ/132',
      watermark: { timestamp: 1535513485, appid: 'wx601ce71bde7b9add' }
    };
    const openId = userInfo.openId;
    wx.setStorageSync('userInfo', userInfo);
    wx.setStorageSync('openId', openId);
  }
}
</script>

<style>
@import url('./iconfont/iconfont.css');

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 200rpx 0;
  box-sizing: border-box;
}
page {
  background: #f4f4f4;
  height: 100%;
}
button {
  background: none;
  padding: 0;
  font-weight: normal;
  font-size: 32rpx;
  box-sizing: content-box;
}
button::after {
  border: 0;
}

view,
text {
  font-size: 28rpx;
  color: #333;
}

.wxParse .p {
  margin: 0 !important;
}

.wxParse .img {
  display: block !important;
}
</style>

